from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1267510494.9394071
_template_filename='/home/joel/old-gamma/onlinelinguisticdatabase/templates/derived/researcher/inputFields.html'
_template_uri='/derived/researcher/inputFields.html'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from webhelpers.html import escape
_exports = ['addEditForm']


def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        # SOURCE LINE 50
        __M_writer(u'\n\n\n\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_addEditForm(context,addEdit):
    context.caller_stack._push_frame()
    try:
        h = context.get('h', UNDEFINED)
        app_globals = context.get('app_globals', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\n<fieldset>\n<legend>Speaker Info</legend>\n<ol>\n <li>\n')
        # SOURCE LINE 6
        if addEdit == 'edit':
            # SOURCE LINE 7
            __M_writer(u'  <label for="username">username <span class="emphasize">(a username cannot be changed)</span></label>\n  <input id="username" maxlength="255" name="username" tabindex="1" type="text" readonly="readonly" />\n')
            # SOURCE LINE 9
        else:
            # SOURCE LINE 10
            __M_writer(u'  <label for="username">username * </label>\n  <input id="username" maxlength="255" name="username" tabindex="1" type="text" />\n')
        # SOURCE LINE 13
        __M_writer(u' </li>\n')
        # SOURCE LINE 14
        if addEdit == 'edit':
            # SOURCE LINE 15
            __M_writer(u' <li>\n  <label for="password">password <span class="emphasize">(enter a new password or leave blank to retain old one)</span></label>\n  <input id="password" maxlength="255" name="password" tabindex="2" type="password" />\n </li>\n')
            # SOURCE LINE 19
        else:
            # SOURCE LINE 20
            __M_writer(u' <li>\n  <label for="password">password * </label>\n  <input id="password" maxlength="255" name="password" tabindex="2" type="password" />\n </li>\n')
        # SOURCE LINE 25
        __M_writer(u' <li>\n  <label for="firstName">first name *</label>\n  <input id="firstName" maxlength="255" name="firstName" tabindex="3" type="text" />\n </li>\n <li>\n  <label for="lastName">last name *</label>\n  <input id="lastName" maxlength="255" name="lastName" tabindex="4" type="text" />\n </li>\n <li>\n  <label for="email">email *</label>\n  <input id="email" maxlength="255" name="email" tabindex="5" type="text" />\n </li>\n <li>\n  <label for="affiliation">affiliation</label>\n  <input id="affiliation" maxlength="255" name="affiliation" tabindex="6" type="text" />\n </li>\n <li>\n  <label for="role">role</label>\n  ')
        # SOURCE LINE 43
        __M_writer(escape(h.select(name='role', selected_values='', options=app_globals.roles, tabindex=7)))
        __M_writer(u'\n </li>\n <li>\n  <label for="personalPageContent">page content</label>\n  <textarea id="personalPageContent" cols="40" rows="15" name="personalPageContent" tabindex="8"></textarea>\n </li>\n</fieldset>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


